Document.Export
Description:
Exports the current view or a selection of views in SAT format.
Exports the current view or a selection of views in SAT format.
Remarks:
All the views must be printable for the Export to succeed. It can be assured by checking the CanBePrinted property of each view.
All the views must be printable for the Export to succeed. It can be assured by checking the CanBePrinted property of each view.
Overloads (11):
Export(String,String,ICollection[ElementId],SATExportOptions)
public bool Export(
string folder,
string name,
ICollection<ElementId> views,
SATExportOptions options
)
-
folderOutput folder, into which file(s) will be exported. The folder must exist.
-
nameEither the name of a single file or a prefix for a set of files. If empty, automatic naming will be used.
-
viewsSelection of views to be exported. The set must contain at least one valid view.
-
optionsVarious options applicable to the SAT format.For now, this option is empty. If nulla null reference (Nothing in Visual Basic), all options will be set to their respective default values.
Return Value
bool
True if successful, otherwise False.
-
NullOrEmpty -or- Contains invalid characters -or- non empty list of views must be provided -or- some of the views is not printable(exportable)
-
A non-optional argument was NULL
-
Thrown when the directory does not exist.
-
Export is temporarily disabled. -or- Exporting is not allowed in the current application mode.
-
The folder does not exist.
-
The SAT module is not available in the installed Revit. -or- The Graphics module is not available in the installed Revit.